import Mock from 'mockjs2'
import { builder, getQueryParameters } from '../util'

const users = () => {
    return builder(
       {
           'data':  [
            {
                name: '张三',
                role: '系统管理员',
                username: '123456'
            },
            {
                name: '李四',
                role: '系统管理员',
                username: '123456'
            },
            {
                name: '王五',
                role: '系统管理员',
                username: '123456'
            },
        ],
        'pageSize': 10,
        'pageNo': 0,
        'totalPage': 6,
        'totalCount': 57
       }
    )
}

Mock.mock(/\/userPage/, 'post', users)
